package com.zkjl.protect_business.entity;

import com.zkjl.protect_business.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * 文件通知
 **/
@Data
@ApiModel(value = "Notice对象", description = "通知对象")
@Document(indexName = "pb_business_tongxinlianluo_wenjiantongzhi", shards = 1, replicas = 0)
public class Notice extends BaseEntity {

    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "通知名称")
    @Field(type = FieldType.Keyword)
    private String name;

    @ApiModelProperty(value = "通知单位")
    @Field(name = "org_ids", type = FieldType.Keyword)
    private List<String> orgIds;

    @ApiModelProperty(value = "通知内容")
    @Field(type = FieldType.Keyword)
    private String content;

    @ApiModelProperty(value = "状态 通知中 通知结束")
    @Field(type = FieldType.Keyword)
    private String status;

    @ApiModelProperty(value = "附件ids")
    @Field(name = "attachment_ids", type = FieldType.Keyword)
    private List<String> attachmentIds;

    @ApiModelProperty(value = "是否可下载")

    private Boolean isdownload;

    @ApiModelProperty(value = "通知开始时间")
    @Field(name = "start_time", type = FieldType.Date)
    private Long startTime;

    @ApiModelProperty(value = "通知结束时间")
    @Field(name = "end_time", type = FieldType.Date)
    private Long endTime;


}
